<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" href="/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>自动排产</title>
</head>

<body>
  <div id="app"></div>
  <script>
    function mockRequest() {
      return new Promise(function (resolve, reject) {
        resolve({ "ok": true })
      })
    }
    function getUrlParam(name) {
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
      var r = window.location.search.substr(1).match(reg); //匹配目标参数
      if (r != null) return unescape(r[2]);
      return null; //返回参数值
    }
  </script>
  <script type="module" src="/src/main.js"></script>
</body>

</html>